import { fetchData ,uploadFile} from "../utils/request";

export default {
  //公共
  publick:{
  },
  // 用户相关
  user:{
    login(params,callback,failure) {
      fetchData('/v1/operater/login',params,'post',callback,failure)
    },
    loginout(params,callback,failure) {
      fetchData('/v1/operater/logout',params,'post',callback,failure)
    },
    updatePass(params,callback,failure) {
      fetchData('/v1/operater/updatePass',params,'post',callback,failure)
    },
  }, 
  entirety:{
    getData(params,callback,failure) {
      fetchData('/v1/stat/adminDigital',params,'post',callback,failure)
    },
    
  },
  //报表页面接口
  data:{
    /*chart(params,callback,failure) {
      fetchData('/lottery/v1/stat/chart',params,'post',callback,failure)
    },*/
    saleOrderList(params,callback,failure) {
      fetchData('/v1/orderPoint/list',params,'post',callback,failure)
    },
    pointReportDayList(params,callback,failure) {
      fetchData('/v1/report/point/day/list',params,'post',callback,failure)
    },
    couponOrderList(params,callback,failure) {
      fetchData('/v1/orderCoupon/list',params,'post',callback,failure)
    },
    couponReportDayList(params,callback,failure) {
      fetchData('/v1/report/coupon/day/list',params,'post',callback,failure)
    },
    /*lottSaleTop(params,callback,failure) {
      fetchData('/lottery/v1/stat/lottSaleTop',params,'post',callback,failure)
    },
    lottSaleTop2(params,callback,failure) {
      fetchData('/lottery/v1/stat/admin/lottSaleTop',params,'post',callback,failure)
    },
    channelDaySales(params,callback,failure) {
      fetchData('/lottery/v1/channelDaySales/list',params,'post',callback,failure)
    },
    listGroupChannel(params,callback,failure) {
      fetchData('/lottery/v1/channelDaySales/listGroupChannel',params,'post',callback,failure)
    },
    listGroupDate(params,callback,failure) {
      fetchData('/lottery/v1/channelDaySales/listGroupDate',params,'post',callback,failure)
    }, 
    listPurchaseTip(params,callback,failure) {
      fetchData('/lottery/v1/purchaseTip/list',params,'post',callback,failure)
    },
    setPurchaseTipOperator(params,callback,failure) {
      fetchData('/lottery/v1/purchaseTip/save/operatorStatus',params,'post',callback,failure)
    },*/
  },
  shopMng:{ //渠道
    shopList(params,callback,failure) {
      fetchData('/v1/channel/list',params,'post',callback,failure)
    },
  },

}


